package com.blog.mapper;

import com.blog.model.ArticleUser;
import com.blog.pojo.Article;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 *
 * @author JiaFuJun
 * @version v1.0
 * @date 2020-05-13
 */
@Mapper
public interface ArticleMapper {

    int insert(Article record);

    int update(Article record);

    int del(Object id);

    Article selectByPrimaryKey(Object id);

    List<Article> selectByRecord(Article record);

    ArticleUser getFirst();

    List<ArticleUser> getData(Integer id);

    ArticleUser selectById(Integer id);

    List<ArticleUser> recommend();

    void delByUserId(Integer id);

    Integer getPublishNum(Map<String, Object> param);

    Integer getPublishNumTotal(Map<String, Object> param);

    Integer getBrowseNum(Map<String, Object> param);

    Integer getBrowseNumTotal(Map<String, Object> param);

    Integer getPraiseNum(Map<String, Object> param);

    Integer getPraiseNumTotal(Map<String, Object> param);

    Integer getDiscussNum(Map<String, Object> param);

    Integer getDiscussNumTotal(Map<String, Object> param);
}